<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$model = Pelajar::model()->findByPk(Yii::app()->session['student']->id_pelajar);
?>
<style>
    #content{
        background-color: white;
        padding: 8px;
    }
</style>
<div class="span-5">
    <?php
    if (file_exists($model->image)) {
        $img = Yii::app()->request->baseUrl . '/' . $model->image;
    } else {
        $img = Yii::app()->request->baseUrl . '/images/asset/no_user.jpg';
    }
    print CHtml::image($img, 'student', array(
                'width' => 200,
    ));
    ?>

</div>
<div class="span8">
    <?php
    $this->widget('bootstrap.widgets.TbDetailView', array(
        'data' => $model,
        'attributes' => array(
//		'id_pelajar',
            'nip',
            'nama',
//        'tempat',
//        'tanggal_lahir',
            array(
                'label' => 'Tanggal Daftar',
                'type' => 'raw',
                'value' => $model->tempat . ', ' . date('d M Y', strtotime($model->tanggal_lahir)),
            ),
            'email',
            'jenis_kelamin',
            'alamat',
            'agama',
            'sekolah',
            'kelas',
            'alamat_sekolah',
            array(
                'label' => 'Program',
                'type' => 'raw',
                'value' => $model->program0->nama,
            ),
//		'program',
//		'no_formulir',
//		'date_created',
            array(
                'label' => 'Tanggal Daftar',
                'type' => 'raw',
                'value' => date('d M Y'),
            ),
            array(
                'label' => 'Status',
                'type' => 'raw',
                'value' => ($model->is_active == 1 ) ? "Aktif" : "Non Aktif",
            ),
//		'is_active',
//		'confirmasi_status',
        ),
    ));
    ?>
</div>

